<extend name="Usercenter/index"/>

<block name="main">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title">
            <li class="layui-this">团购订单列表</li>
            <li>拼团中</li>
            <li>拼团成功</li>
            <li>待发货</li>
            <li>待收货</li>
            <li>交易完成</li>
            <li>拼团失败</li>
        </ul>
        <div class="layui-tab-content">
            <!--我的订单-->
            <div class="layui-tab-item layui-show">
                    <div class="tr non-info show border-bottom-none">
                        <table class="layui-table">
                            <colgroup>
                                <col >
                                <col >
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th >商品名</th>
                                <th >价格</th>
                                <th >参与拼团人数</th>
                                <th >状态</th>
                                <th >发起人ID</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="groupList" item="value">
                                <tr>
                                    <td>{{$value.name}}</td>
                                    <td>{{$value.price}}</td>
                                    <td>{{$value.total_num}}</td>
                                    <td>
                                        {{$value['is_pay'] == 0 ? "未付款":"已付款"}}
                                        <br>
                                        {{$value['is_status'] == 0 ? "拼团中":"拼团成功"}}
                                        <br>
                                        {{$value['is_ok'] == 0 ? "未完成":"已完成"}}
                                        <br>
                                        {{$value['is_deliver'] == 0 ? "未发货":""}}
                                        {{$value['is_deliver'] == 1 ? "已发货":""}}
                                        {{$value['is_deliver'] == 2 ? "已收货":""}}
                                    </td>
                                    <td>{{$value.uid}}</td>
                                </tr>

                            </foreach>
                            </tbody>
                        </table>
                    </div>

            </div>
            <!--拼团中-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有拼团</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
            <!--拼团成功-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有拼团</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
            <!--待发货-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有待发货</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
            <!--待收货-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有待收货</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
            <!--交易完成-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有交易</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
            <!--拼团失败-->
            <div class="layui-tab-item">
                <if condition="$list2 eq null">
                    <div class="tr non-info show border-bottom-none">
                        <span>暂时没有拼团失败</span>
                    </div>
                    <else />
                    <table class="layui-table">
                        <colgroup>
                            <col >
                            <col >
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th >优惠券名称</th>
                            <th >优惠价格</th>
                            <th >数量</th>
                            <th >最低使用金额</th>
                            <th >开始时间</th>
                            <th >过期时间</th>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="list2" item="vo" key="k">
                            <tr>
                                <td>{{$vo.name}}</td>
                                <td>{{$vo.cou_pri}}</td>
                                <td>{{$vo.num}}</td>
                                <td>{{$vo.min_pri}}</td>
                                <td>{{$vo.begin_time}}</td>
                                <td>{{$vo.end_time}}</td>
                                <td ><a class="layui-btn layui-btn-xs layui-btn-radius layui-btn-disabled">已过期</a></td>

                            </tr>
                        </foreach>

                        </tbody>
                    </table>
                </if>

            </div>
        </div>
        <script>
            //注意：选项卡 依赖 element 模块，否则无法进行功能性操作
            layui.use('element', function(){
                var element = layui.element;
            });
        </script>
    </div>



    <!--<div class="stamp stamp04">-->
    <!--<div class="par"><p>XXXXXX折扣店</p><sub class="sign">￥</sub><span>50.00</span><sub>优惠券</sub><p>订单满100.00元</p></div>-->
    <!--<div class="copy">副券<p>2015-08-13<br>2016-08-13</p><a href="#">立即使用</a></div>-->
    <!--<i></i>-->
    <!--</div>-->






</block>